#!/usr/bin/env python
def butler_build(a,b):
    print "Butler is built in Python, no need to build..."

def butler_sudo(a,b):
    print "You'll always be Butler's root."

def butler_poison(a,b):
    print("\n" * 10)
    print("Poison control")
    print("(US): 1-800-222-1222")
    print("(UK): 0870 600 6266")
    print("\n" * 10)

def butler_aboutconfig(a,b):
    print("Silly human!  This isn't Firefox!.")
    
def xkcd(a,b):
    print("Fetching today's XKCD")
    open_url("http://www.xkcd.com")


TRIGGERS = {
            "build":butler_build,
            "sudo":butler_sudo,
            "poison":butler_poison,
            "about:config":butler_aboutconfig,
            "xkcd":xkcd,
            "demandhumor":xkcd,
            }